<div id="sidebar" class="sw-sidebar" ng-init="$ctrl.init()"><div class="row" ng-if="!$ctrl.isInit"><div class="spinner-border text-primary" role="status"><span class="sr-only">Loading...</span></div></div><select class="btn btn-outline-secondary form-select" ng-if="$ctrl.roles.length > 1" ng-options="item as item.name for item in $ctrl.roles track by item.name" ng-model="$ctrl.role"></select><ul ng-if="$ctrl.roles" class="sw-links pt-2" id="sw-docs-nav" data-children=".sw-toc-item"><li ng-repeat="permission in $ctrl.role.permissions | orderBy: 'priority' "><main-side-bar-item-dynamic item="permission" icon-size="'mi-lg'" item-style="'sw-toc-link'"></main-side-bar-item-dynamic></li><li class="sw-toc-item mt-1 mb-5"></li></ul></div>